package com.heima.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.UserRlationDto;
import com.heima.service.ApUserRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 晓风残月Lx
 * @date 2023/8/14 9:15
 */
@RestController
@RequestMapping("/api/v1/user")
public class ApUserRelationController {


    @Autowired
    private ApUserRelationService apUserRelationService;

    public ResponseResult follow(@RequestBody UserRlationDto dto) {
        return apUserRelationService.follow(dto);
    }

}
